package com.daniel.design.pattern.strategy;

/**
 * @ClassName Client
 * @Description 策略模式测试类
 * @Author Daniel
 * @Version V1.0.0
 */
public class Client {
    public static void main(String[] args) {
        SalesMan salesMan = new SalesMan(new StrategyA());
        salesMan.showInfo();

        salesMan.setIStrategy(new StrategyB());
        salesMan.showInfo();

        salesMan.setIStrategy(new StrategyC());
        salesMan.showInfo();
    }
}
